package com.rc.pojo.po.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class IdentifyTableDef extends TableDef {

    public static final IdentifyTableDef IDENTIFY = new IdentifyTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn CON_ID = new QueryColumn(this, "con_id");

    public final QueryColumn RIPE_NUM = new QueryColumn(this, "ripe_num");

    public final QueryColumn ILL_NAMES = new QueryColumn(this, "ill_names");

    public final QueryColumn TOTAL_NUM = new QueryColumn(this, "total_num");

    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    public final QueryColumn IDENTIFY_IMG = new QueryColumn(this, "identify_img");

    public final QueryColumn ORIGINAL_IMG = new QueryColumn(this, "original_img");

    public final QueryColumn PLANT_ITEM_ID = new QueryColumn(this, "plant_item_id");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, CON_ID, RIPE_NUM, ILL_NAMES, TOTAL_NUM, CREATE_TIME, IDENTIFY_IMG, ORIGINAL_IMG, PLANT_ITEM_ID};

    public IdentifyTableDef() {
        super("rc", "identify");
    }

    private IdentifyTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public IdentifyTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new IdentifyTableDef("rc", "identify", alias));
    }

}
